import 'package:freezed_annotation/freezed_annotation.dart';

part 'sj_medal_data.g.dart';
part 'sj_medal_data.freezed.dart';

@freezed
class SjMedalData with _$SjMedalData {
  @JsonSerializable(explicitToJson: true)

  const factory SjMedalData({
     String? medalId,
     String? title,
     String? dec,
     String? assetPath,
     bool? isObtain,
     bool? isUpgrade,
  }) = _SjMedalData;

  factory SjMedalData.fromJson(Map<String, dynamic> json) =>
      _$SjMedalDataFromJson(json);
}